package com.scs.application.core.properties;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 项目信息配置
 */
@Data
@Configuration
@ConditionalOnExpression("!'${project}'.isEmpty()")
@ConfigurationProperties(prefix = "project")
public class ProjectProperties {

    /*** 项目名称 */
    private String name;

    /*** */
    private boolean demoMode;

    /** 域名 */
    private String domain;


    private Login login;

    private Front front;

    /** 登录相关配置 */
    @Data
    public static class Login{
        private boolean allowMultipleLogin;
        private boolean sendNoticeWhenMultipleLogin;
    }

    /** 前端相关配置 */
    @Data
    public static class Front{
        private String dialogFormWidth;
    }

}
